package com.bdqn.ch09.repository;

import com.bdqn.ch07.pojo.SysUser;
import com.bdqn.ch09.pojo.SysUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface UserRepository extends JpaRepository<SysUser, Long> , JpaSpecificationExecutor<SysUser> {
    public List<SysUser>findByUsrNameAndUsrPassword(String usrName , String usrPassword);

    public SysUser findUserByUsrName(String usrName);
}

